package com.kdd.campus.sh.po;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/****
 * @Author:shenkunlin
 * @Description:ShProduct构建
 * @Date 2019/6/14 19:13
 *****/
@ApiModel(description = "ShProduct",value = "ShProduct")
@Table(name="sh_product")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ShProduct implements Serializable{

	@ApiModelProperty(value = "")
	@Id
    @Column(name = "id")
	private Long id;//

	@ApiModelProperty(value = "")
    @Column(name = "category_id")
	private Integer categoryId;//

	@ApiModelProperty(value = "")
    @Column(name = "user_id")
	private Long userId;//

	@ApiModelProperty(value = "商品打折后的价格")
    @Column(name = "price")
	private Double price;//商品打折后的价格

	@ApiModelProperty(value = "原价")
    @Column(name = "original_price")
	private Double originalPrice;//原价

	@ApiModelProperty(value = "商品信息描述(不超过500字)")
    @Column(name = "description")
	private String description;//商品信息描述(不超过500字)

	@ApiModelProperty(value = "商品浏览数")
    @Column(name = "browse_count")
	private Long browseCount;//商品浏览数

	@ApiModelProperty(value = "商品名称")
    @Column(name = "name")
	private String name;//商品名称

	@ApiModelProperty(value = "商品数量")
    @Column(name = "productNum")
	private Integer productNum;//商品数量

	@ApiModelProperty(value = "创建时间")
    @Column(name = "created")
	private Date created;//创建时间

	@ApiModelProperty(value = "修改时间")
    @Column(name = "modified")
	private Date modified;//修改时间

	@ApiModelProperty(value = "商品封面图面")
    @Column(name = "cover_url")
	private String coverUrl;//商品封面图面

	@ApiModelProperty(value = "打头阵的商品图片")
	@Column(name = "primary_pic_url")
	private String primaryPicUrl;//打头阵的商品图片

	@ApiModelProperty(value = "商品图片集合")
	@Column(name = "product_desc")
	private String productDesc;//商品图片集合

	@ApiModelProperty(value = "状态(0:下架 1:正常显示 2:售完)")
    @Column(name = "status")
	private Integer status;//状态(0:下架 1:正常显示 2:售完)

	@ApiModelProperty(value = "是否热门(0:不是  1:热门)")
	@Column(name = "is_hot")
	private Integer isHot;//是否热门(0:不是  1:热门)

	@ApiModelProperty(value = "发布者最后一次来看该商品的时间")
    @Column(name = "last_come_time")
	private Date lastComeTime;//发布者最后一次来看该商品的时间

	@ApiModelProperty(value = "是否是新品(0:不是新品 1:新品)")
    @Column(name = "is_new")
	private Integer isNew;//是否是新品(0:不是新品 1:新品)

	@ApiModelProperty(value = "是否实拍(0:不是 1:是)")
    @Column(name = "is_real_shotting")
	private Integer isRealShotting;//是否实拍(0:不是 1:是)

	@ApiModelProperty(value = "是否送货上门(0:不是 1:是)")
    @Column(name = "is_home_delivery")
	private Integer isHomeDelivery;//是否送货上门(0:不是 1:是)
}
